#define  _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	float r = 0;
	int h = 0;
	double c, s, sc, sv, v;
	scanf("%lf", &r);
	//scanf("%f%d", &r, &h);
	c = 3.14 * 2 * r;
	s = 3.14 * r * r;
	//sc = 4 * 3.14 * r * r;
	//sv = 4 / 3 * 3.14 * r * r * r;
	//v = 2 * s * h;
	//printf("%lf\n%lf%\nlf%\nlf%\nlf", c, s, sc, sv, v);
	printf("%f\nf\n", c, s);


	return 0;
}
